﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="renewal-notice.aspx.cs" Inherits="carinsurance_renewal_renewal_notice" EnableEventValidation="false" %>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
    <title>
        <%=GetGlobalResourceObject("General", "RenewalNotice")%>
        -GG-CRM - กล้วยๆ.com - Teledirect Thailand</title>
    <link rel="stylesheet" href="renewal/magnific-popup/magnific-popup.css" />
    <style type="text/css">
        .hiddencol
        {
            display: none;
        }
        
        .mfp-iframe-scaler iframe {
            position: absolute;
            display: block;
            top: 0;
            left: 300px;
            width: 600px;
            height: 440px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
            background: #fdfdfd;
        }
    </style>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphPageTitle" runat="Server">
    <h1>
        <asp:Label runat="server" Text="<%$Resources:General,RenewalNotice%>" ID="lblPageName"></asp:Label></h1>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div><asp:Label runat="server" Text="<%$Resources:General,LangOption%>" Visible="false"
        ID="lblLangOption" /></div>
    <div class="bc2">
        <asp:Label runat="server" ID="lblSiteLocation" Text="You are here : " CssClass="bclist" />
        <asp:SiteMapPath SiteMapProvider="SiteUserSiteMapProvider" ID="smpProvider" runat="server"
            PathSeparator=" : ">
            <PathSeparatorStyle CssClass="bcarrow" />
            <CurrentNodeStyle CssClass="bclist" />
            <NodeStyle CssClass="bclink" />
            <RootNodeStyle CssClass="bclink" />
        </asp:SiteMapPath>
        <div class="clear">
        </div>
    </div>
    <div id="divSearch" runat="server">
        <div class="topdisplay pb10">
            <table width="100%" border="1" cellpadding="10" cellspacing="10" class="flattable">
                <tr>
                    <td width="120">เดือน (Month)</td>
                    <td>
                         <asp:DropDownList ID="ddlMonth1" runat="server"></asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td width="120">
                        <%=GetGlobalResourceObject("General", "ReferenceNo")%>
                        /<%=GetGlobalResourceObject("CarInsurance", "Name")%>
                        /<%=GetGlobalResourceObject("Proposal", "PlateNumber")%>
                    </td>
                    <td>
                        <asp:TextBox ID="txtSearch" runat="server" Width="250px" MaxLength="50" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="lblMobileNoSearch" Text="<%$Resources:General,Mobile%>" runat="server"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp;<asp:TextBox ID="txtMobileNoSearch" runat="server" Width="240px"
                            MaxLength="10" />&nbsp;
                        <asp:Button ID="btnSubmit" runat="server" Text="<%$Resources:General,Search%>" OnClick="btnSubmit_Click"
                            CssClass="blueB ml10" />
                        <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label runat="server" ID="lblRecordCount" CssClass="red" />
            <asp:Button runat="server" Visible="false" CssClass="greenB ml10" ID="btnPrint" Text="<%$Resources:General,Print%>"
                OnClientClick="javascript:window.print();return false;" />
        </div>
        <div style="float:right"><asp:Label ID="lblSuccessLead" runat="server" ForeColor="Green"></asp:Label><asp:Label ID="lblErrorLead" runat="server" ForeColor="Red"></asp:Label><asp:Button runat="server" CssClass="greenB ml10" ID="btnLeads" 
                Text="<%$Resources:General,GenerateLead%>" onclick="btnLeads_Click" /></div>
        <div class="toggle">
            <div class="title opened" id="opened1">
                <img src="../images/icons/dark/clipboard.png" alt="" class="titleIcon" />
                <h6>
                    <asp:Label runat="server" ID="Label5" Text="<%$Resources:General,ApplicationList%>" />
                </h6>
            </div>
            <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
            <asp:GridView ID="grvApplication" runat="server" AllowPaging="false" AutoGenerateColumns="False"
                CssClass="sTable" GridLines="None" Width="100%" EmptyDataText="<%$Resources:General,ErrNodata%>"
                OnRowDataBound="grvApplication_RowDataBound" DataKeyNames="CECarId, RefCEUserID, ProviderCompanyID, QuoteRefNo">
                <Columns>
                    <asp:BoundField DataField="QuoteRefNo" HeaderText="<%$Resources:CarInsurance,ReferenceNo%>"
                        SortExpression="QuoteRefNo" ItemStyle-Width="45px" />
                    <asp:BoundField DataField="Name" HeaderText="<%$Resources:CarInsurance,Name%>" SortExpression="Name"
                        ItemStyle-Width="115px" />
                    <asp:BoundField DataField="CarPlate" HeaderText="<%$Resources:Proposal,PlateNumber%>"
                        SortExpression="CarPlate" ItemStyle-Width="50px" />
                    <asp:BoundField DataField="CarModel" HeaderText="<%$Resources:CarInsurance,CarMakeModel%>"
                        SortExpression="CarModel" ItemStyle-Width="120px" />
                    <asp:BoundField DataField="CoverageStart" HeaderText="<%$Resources:General,DateTime%>"
                        SortExpression="CoverageStart" ItemStyle-Width="60px" DataFormatString="{0:dd/MM/yyyy}" />
                    <asp:BoundField DataField="FirstName" HeaderText="Agent"
                        SortExpression="FirstName" ItemStyle-Width="60px" />
                    <asp:BoundField DataField="Remark" HeaderText="Remark"
                        SortExpression="Remark" ItemStyle-Width="60px" />
                    <asp:TemplateField ItemStyle-Width="15px">
                    <ItemTemplate>
                        <asp:Literal runat="server" ID="ltrRed"></asp:Literal>
                    </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="RefCEUserId"
                        SortExpression="RefCEUserId" ><HeaderStyle CssClass="hiddencol" /><ItemStyle CssClass="hiddencol" /></asp:BoundField>
                    <asp:BoundField DataField="CECarId" 
                        SortExpression="CECarId" ><HeaderStyle CssClass="hiddencol" /><ItemStyle CssClass="hiddencol" /></asp:BoundField>
                    <asp:BoundField DataField="RenewalId" 
                        SortExpression="RenewalId" ><HeaderStyle CssClass="hiddencol" /><ItemStyle CssClass="hiddencol" /></asp:BoundField>
                    <asp:TemplateField ItemStyle-Width="30px">
                    <ItemTemplate>
                        <asp:Literal runat="server" ID="ltrLink"></asp:Literal>
                    </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle />
                <PagerStyle />
                <SelectedRowStyle BackColor="ActiveBorder" />
                <HeaderStyle />
                <EditRowStyle />
                <AlternatingRowStyle />
                <RowStyle />
            </asp:GridView>
            <hr style="width:100%" />
            <b><asp:Label ID="lblTotal" runat="server" Text="Renewal Total :"></asp:Label></b>&nbsp;&nbsp;<b><asp:Label ID="lblRenewTotal" runat="server"></asp:Label></b>
            </ContentTemplate></asp:UpdatePanel>
            <div style="display: none">
                <asp:TextBox runat="server" ReadOnly="true" ID="txtAgentId"></asp:TextBox>
                <asp:Label ID="lblContent" runat="server"></asp:Label>
            </div>
            <div class="clear">
            </div>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function() {
            $('.popup-notice').magnificPopup({
                disableOn: 700,
                type: 'iframe',
                mainClass: 'mfp-fade',
                removalDelay: 160,
                preloader: false,

                fixedContentPos: false
            });
        });
    </script>
</asp:Content>
